package cn.edu.scau.cmi.front.domain;

import cn.edu.scau.cmi.ema.domain.Food;
import cn.edu.scau.cmi.ema.domain.Foodtype;
public class FuzzyFoodtype implements Comparable<FuzzyFoodtype>{
	
	private String foodName;//需要模糊匹配的食物的名称
	private String foodtypeName;//需要模糊匹配的食物类型的名称
	
	private Food food;
	private Foodtype foodtype;
	
	private int rowNumber;//电子表格中的行的编号
	
	@Override
	public int compareTo(FuzzyFoodtype o) {
		// TODO 采用食物类型的id比较大小
		return o.getFoodtype().getId() - this.getFoodtype().getId();
	}

	public String getFoodName() {
		return foodName;
	}

	public void setFoodName(String foodName) {
		this.foodName = foodName;
	}

	public String getFoodtypeName() {
		return foodtypeName;
	}

	public void setFoodtypeName(String foodtypeName) {
		this.foodtypeName = foodtypeName;
	}

	public Food getFood() {
		return food;
	}

	public void setFood(Food food) {
		this.food = food;
	}

	public Foodtype getFoodtype() {
		return foodtype;
	}

	public void setFoodtype(Foodtype foodtype) {
		this.foodtype = foodtype;
	}

	public int getRowNumber() {
		return rowNumber;
	}

	public void setRowNumber(int rowNumber) {
		this.rowNumber = rowNumber;
	}



}